package com.caesar.exer1;

import java.util.LinkedList;

/**
 * @author caesar
 * @date 2025/7/18
 * @Description:
 * @apiNote
 * 队列Queue,常用的还是ArrayList()
 * 插入顺序：队首addFirst()，队尾 addLast()

* */
public class TestMatryoshkaDoll2 {
    public static void main(String[] args) {
        LinkedList<String> queue = new LinkedList<>();
        queue.addFirst("光头强");
        queue.addFirst("熊二");
        queue.addLast("熊大");
        queue.addFirst("吉吉");
        queue.addLast("毛毛");
        queue.addFirst("肥波");
        System.out.println(queue);
    }
}
